package com.hh.service.service.merchant;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.common.model.merchant.MerchantAdmin;
import com.hh.common.request.PageParamRequest;
import com.hh.common.request.SystemAdminAddRequest;
import com.hh.common.request.SystemAdminRequest;
import com.hh.common.request.SystemAdminUpdateRequest;
import com.hh.common.response.SystemAdminResponse;

import java.util.List;

public interface MerchantAdminService extends IService<MerchantAdmin> {

    MerchantAdmin selectUserByUserName(String username);

    Boolean saveAdmin(SystemAdminAddRequest systemAdminAddRequest);

    List<SystemAdminResponse> getList(SystemAdminRequest systemAdminRequest, PageParamRequest pageParamRequest);

    Boolean updateAdmin(SystemAdminUpdateRequest systemAdminRequest);

    MerchantAdmin getDetail(Integer id);

    Boolean updateStatus(Integer id, Boolean status);

    Boolean updateIsSms(Integer id);

    Boolean deleteAdminUserById(Integer id);
}
